package my_jwt

import (
	"fmt"
	"testing"
)

func TestJWT_Generate(t *testing.T) {
	fmt.Println(JWTHandler.Generate())
}

func TestJWT_Validate(t *testing.T) {
	var token, ok = JWTHandler.Generate()
	if ok != nil {
		t.Error(ok)
		return
	} else {
		var _, vOk = JWTHandler.Verify(token)
		fmt.Println(vOk)
	}
}
